package com.dykj.fireFighting.server.socialUnit.xfyl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dykj.fireFighting.api.socialUnit.xfyl.entity.UnitSafeDrillPlan;
import com.dykj.fireFighting.api.socialUnit.xfyl.service.IUnitSafeDrillPlanService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.xfyl.mapper.UnitSafeDrillPlanMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 消防安全演练计划
 *
 * @Author LIJIANJIE
 * @Date  2021-06-16 10:38:06
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class UnitSafeDrillPlanServiceImpl extends BaseServiceImpl<UnitSafeDrillPlanMapper, UnitSafeDrillPlan> implements IUnitSafeDrillPlanService {


    @Override
    public List<UnitSafeDrillPlan> queryList(String enterpriseId) {
        QueryWrapper<UnitSafeDrillPlan> wrapper = new QueryWrapper<>();
        wrapper.eq("unit_id", enterpriseId);
        return this.baseMapper.selectList(wrapper);
    }
}
